import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class ReadColor{
    public static double method(String str){                  //高度的读取处理，返回高度
        String[] temp = str.split("].FromArgb");
        double height=Double.valueOf(temp[1]);
        return height;
    }
    public static double[][]  readColor() throws IOException {
        double[][] arr= new double[256][3];
        BufferedReader atb = new BufferedReader(new FileReader("D:\\idea\\Cesium_new1\\color.txt"));//读取高度，i代表建筑序号
        for (int i = 0; i <= 255; i++) {
            String str = atb.readLine();
            arr[1][0] = method(str);
        }

        atb.close();
        return arr;
    }
}
